home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
BBS
/
TELEFINDER
/
TF Macro Tool 1.1B1.cpt
/
Connect 2400
< prev
next >
Wrap
Text File
|
1992-04-02
|
954b
|
57 lines
* This is a very simple script that you can use
* with any Hayes compatible 2400 baud modem.
* set the naud rate to 2400 bps and
* turn flow control OFF.
BAUD 2400;
FLOW 0;
* Send a carriage return to flush
* the modem's command buffer.
TYPE "^M"
PAUSE 1;
* Set our prompt wait time to three seconds. Keep sending
* AT&F until the modem responds with OK.
* NOTE ^M sends a carriage return.
PROMPSEC 3;
modemset:
TYPE "AT&F^M"
PROMPT "OK"
FALSE "modemset"
* Let the modem clear.
* Type out the ATDT command and phone number.
PAUSE 1;
TYPE "ATDT730-5785^M"
* Re-set the prompt wait time to 45 seconds ( was 3 three seconds ).
* look for a connect message.
PROMPSEC 45;
PROMPT "CONNECT"
* Quit if we don't get the CONNECT message
FALSE "finish"
* Otherwise tell TeleFinder/User that we're connected so
* that the program will log the user on.
CONNECT 1;
END
* make noise to tell the user it didn't work.
finish:
BELL
CANCEL
TYPE "^M"
END